const path = require("path")

function resolve(dir) {
    return path.join(__dirname, dir)
}



module.exports = {
    chainWebpack: (config) => {
        config.resolve.alias.set("@", resolve("/src")).set("@c", resolve("src/components")).set("@v", resolve("src/views")).set("@a", resolve("src/assets")).set("@s", resolve("src/Store"))
        config.resolve.symlinks(true)
    },
    devServer: {
        open: true,
        port: 3000,
        compress: true,
        disableHostCheck: true
        // proxy: {
        //     "/api": {
        //         target: "http://localhost:8000",
        //         changeOrigin: true,
        //         pathRewrite: {
        //             "^/api": ""
        //         }
        //     }
        // }
    }
}